package com.atguigu.day09.test.ts05.ts02;

class Father {
    int a = 10;
    int b = 11;
}

class Son extends Father {
    int a = 20;

    public void test() {

        System.out.println("子类的a：" + a);//20
        System.out.println("子类的a：" + this.a);//20
        System.out.println("父类的a：" + super.a);//10


        System.out.println("b = " + b);//11
        System.out.println("b = " + this.b);//11
        System.out.println("b = " + super.b);//11
    }

    public void method(int a, int b) {

        System.out.println("局部变量的a：" + a);//30
        System.out.println("子类的a：" + this.a);//20
        System.out.println("父类的a：" + super.a);//10

        System.out.println("b = " + b);//13
        System.out.println("b = " + this.b);//11
        System.out.println("b = " + super.b);//11
    }
}